﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DTO;
using DAO;

namespace BUS
{
    public class ChiTietPhieuBanHang_BUS
    {
        private static ChiTietPhieuBanHang_BUS m_instance = null;

        public static ChiTietPhieuBanHang_BUS Instance
        {
            get
            {
                if (m_instance == null)
                {
                    m_instance = new ChiTietPhieuBanHang_BUS();
                }
                return m_instance;
            }
        }

        public bool ThemChiTietPhieuBanHang(ChiTietPhieuBanHang_DTO phieu)
        {
            return ChiTietPhieuBanHang_DAO.Instance.ThemChiTietPhieuBanHang(phieu.MaSanPham, phieu.MaPhieuBanHang, phieu.SoLuong, phieu.DonGia);
        }
    }
}
